public class EvenNumberPrint implements Runnable{
    public void run(){
        for(int i=1;i<=100;++i)
        {
            if(i%2==0)
            {
                System.out.println("EvenNum: "+i);
                try{
                    Thread.sleep((int)Math.random());
                }catch(InterruptedException a){};
            }
        }
    }
}